OBJECTS = minesweeperclone.o common.o grid_data.o records_io.o xpm_images.o
#DEBUG_FLAGS = -D DEBUG_MODE
CXXFLAGS = $(DEBUG_FLAGS) -Wall `pkg-config --cflags gtk+-3.0`
LDFLAGS = -export-dynamic `pkg-config --libs gtk+-3.0`

minesweeperclone: $(OBJECTS)
	g++ -o minesweeperclone $(OBJECTS) $(LDFLAGS)

-include dependencies


.PHONY: clean cleanall debug depend

clean:
	rm *.o

cleanall:
	rm minesweeperclone *.o

debug:
	g++ -o minesweeperclone -D DEBUG_MODE *.cc $(CXXFLAGS) $(LDFLAGS) -g

depend:
	g++ -MM *.cc > dependencies

